SftTabs/NET 6.0

Current Property, SftTabs Class

Softel vdm, Inc.

Defines the currently active tab.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Public Property Current As Integer

C#   

public int Current { get; set; }

C++   

public: property int Current {
        int get();
        void set(int value);
}

Property Value

The zero-based index of the currently active tab, or -1 if no tab is active.

The default value is -1.

Comments

The Current property defines the currently active tab.

The active tab (or current tab) is the tab that is currently the selected tab, usually in the front row.

The tab contents also receive a focus rectangle when the tab control has the input focus (based on the FocusHighlightStyle property).

The current tab can be changed by the user using the mouse or the keyboard. An application uses the Current property to change the currently active tab.

When the tab control is initially shown, the tab defined using the InitialTab property becomes the current tab.

If the client area is available (see ClientArea property), controls can be added to the tab control at design-time. As the user switches between tabs, the controls associated with each tab are shown or hidden. As controls are hidden because their associated tab is not the current tab, the controls are not only hidden, but also disabled. This is fully automatic and requires no application intervention.

If the tab control is empty, the Current property returns -1.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com